<?php

namespace app\common\model\mysql;

use think\db\exception\DataNotFoundException;
use think\db\exception\DbException;
use think\db\exception\ModelNotFoundException;
use think\model\relation\HasOne;

class ScreenTalent extends BaseModel
{
    protected $schema=[
        'id'=>'int',
        'name'=>'varchar',
        'gender'=>'tinyint',
        'nation'=>'int',
        'birthday'=>'int',
        'native_place'=>'varchar',
        'politics'=>'int',
        'education'=>'int',
        'degree'=>'int',
        'titles'=>'varchar',
        'job_text'=>'varchar',
        'industry'=>'varchar',
        'phone'=>'varchar',
        'remark'=>'text',
        'is_technology_leader'=>'tinyint',
        'selected'=>'text',
        'reference'=>'varchar',
        'level'=>'int',
        'graduation_time'=>'int',
        'unit_type'=>'int',
        'unit_nature'=>'int',
        'technical_position_time'=>'int',
        'office_phone'=>'varchar',
        'email'=>'varchar',
        'card_category'=>'varchar',
        'introduce_unit'=>'varchar',
        'introduce_year'=>'varchar',
        'introduce_area'=>'int',
        'is_current'=>'tinyint',
        'is_abroad'=>'tinyint',
        'is_top_20'=>'tinyint',
        'related_profession'=>'text',
        'is_double_top'=>'tinyint',
        'talent_category'=>'text',
        'technology'=>'int',
        'create_time'=>'int',
        'update_time'=>'int',
        'status'=>'tinyint'
    ];

    public function titles(): HasOne
    {
        return $this->hasOne(SystemTitles::class,'titles');
    }

}
